<template>
  <el-form-item label="显示类型">
    <el-select v-model="optionModel.showType">
      <el-option v-for="item in showTypeList" :key="item.value" :label="item.label"
                 :value="item.value">
      </el-option>
    </el-select>
  </el-form-item>
</template>

<script>
  import i18n from "@/utils/i18n"

  export default {
    name: "showType-editor",
    mixins: [i18n],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
    data() {
      return {
        showTypeList:[
          {
            label: "账户",
            value: "username"
          },
          {
            label: "姓名",
            value: "name"
          },
          {
            label: "性别",
            value: "gender"
          },
          {
            label: "邮箱",
            value: "email"
          },
          {
            label: "所属组织",
            value: "tenantName"
          },
          {
            label: "直属主管",
            value: "manager"
          },
          {
            label: "岗位",
            value: "positionIds"
          },
          {
            label: "证件类型",
            value: "certificatesType"
          },
          {
            label: "角色",
            value: "roleName"
          },
          {
            label: "民族",
            value: "nation"
          },
          {
            label: "籍贯",
            value: "nativePlace"
          },
          {
            label: "入职时间",
            value: "entryDate"
          },
          {
            label: "证件号码",
            value: "certificatesNumber"
          },
          {
            label: "文化程度",
            value: "education"
          },
          {
            label: "出生年月(生日)",
            value: "birthday"
          },
          {
            label: "办公电话",
            value: "telePhone"
          },
          {
            label: "办公座机",
            value: "landline"
          },
          {
            label: "手机号",
            value: "phone"
          },
          {
            label: "紧急联系人",
            value: "urgentContacts"
          },
          {
            label: "紧急电话",
            value: "urgentTelePhone"
          },
          {
            label: "通讯地址",
            value: "postalAddress"
          }
        ]
      }
    }
  }
</script>

<style scoped>

</style>
